package com.example.model.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("warehouse_")
@AllArgsConstructor
@NoArgsConstructor
public class Warehouse implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "my_id_", type = IdType.ASSIGN_ID)
    private Long myId;

    /**
     * 物品ID
     */
    @TableField("materials_id_")
    private String materialsId;

    /**
     * 物品名
     */
    @TableField("materials_name_")
    private String materialsName;

    /**
     * 物品库存数
     */
    @TableField("total_")
    private Integer total;

}
